﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:ACTT_WP7"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="ACTT_WP7.DetailsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"  Orientation="Portrait" 
    shell:SystemTray.IsVisible="True">
    <!--Data context is set to sample data above and first item in sample data collection below and LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>

            <RowDefinition Height="*"/>
            <RowDefinition Height="0"/>
        </Grid.RowDefinitions>

        <controls:Pivot Title="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" Name="PivotControl" Grid.Row="0">

            <controls:PivotItem Header="{Binding Path=Strings.Going, Source={StaticResource LocalizedStrings }}" Name="PivotPage1">
                <Grid>
                    <Grid.RowDefinitions>

                        <RowDefinition Height="150"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Image Height="auto" HorizontalAlignment="Stretch" Name="Header_a" Stretch="Fill" VerticalAlignment="Stretch" Width="460" Source="/ACTT_WP7;component/Images/vst_logo.png"  />
                    <ScrollViewer Grid.Row="1">
                        <Image Height="auto" HorizontalAlignment="Stretch" Name="Image_a" Stretch="Fill" VerticalAlignment="Stretch" Width="460" Source="/ACTT_WP7;component/Images/vst_logo.png"/>
                    </ScrollViewer>
                </Grid>
            </controls:PivotItem>
            <controls:PivotItem Header="{Binding Path=Strings.Return, Source={StaticResource LocalizedStrings }}" Name="PivotPage2" >
                <Grid>
                    <Grid.RowDefinitions>

                        <RowDefinition Height="150"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Image Height="auto" HorizontalAlignment="Stretch" Name="Header_b" Stretch="Fill" VerticalAlignment="Stretch" Width="460" Source="/ACTT_WP7;component/Images/vst_logo.png"  />
                    <ScrollViewer Grid.Row="1">
                        <Image Height="auto" HorizontalAlignment="Stretch" Name="Image_b" Stretch="Fill" VerticalAlignment="Stretch" Width="460" Source="/ACTT_WP7;component/Images/vst_logo.png"/>
                    </ScrollViewer>
                </Grid>
            </controls:PivotItem>
            <controls:PivotItem Header="{Binding Path=Strings.Stops, Source={StaticResource LocalizedStrings }}" Name="PivotPage3" >
                <ListBox x:Name="Stops_List" Margin="0,0,-12,0" ItemsSource="{Binding StopsItems}" SelectionMode="Single" Grid.Row="2" Grid.ColumnSpan="5" SelectionChanged="Stops_List_SelectionChanged">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Margin="0,0,0,17">
                                <TextBlock Text="{Binding Name}" TextWrapping="NoWrap" Margin="12,0,0,0" Style="{StaticResource PhoneTextLargeStyle}"/>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PivotItem>
        </controls:Pivot>



        <!--<Grid Name="AdControlGrid" xmlns:adctl="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI" Grid.Row="3">
            <adctl:AdControl Name="AdControl" Height="80" Width="480" AdUnitId="32126" ApplicationId="b76d31a7-58ed-4379-bf66-a32f00905f2d" AdModel="Contextual" />
        </Grid>-->
    </Grid>

</phone:PhoneApplicationPage>